package day20170930;

/**
 * Created by 14394 on 2017/9/30.
 */
public class Student {
    //属性
    String name;
    int age;
    String address;

    Student(String name,int age){
        this.age=age;
        this.name=name;
    }

    //方法
    public void study() {
        System.out.println("我是学生："+name+"我的年龄是："+age+"我正在学习。");
    }

    public void run() {
        System.out.println("我是学生："+name+"我的年龄是："+age+"我正在奔跑。");
    }

    public static void main(String[] args) {
        Student s1=new Student("陈开海",16);
        Student s2=new Student("王二",18);
        s2.run();
        s1.study();

    }

}